#include <stdio.h>
int main(void){
	int l,s,residue,i,L,S;
	i=128;L=0;S=0;
	for(l=1;l<=5;l++){
		s=(128-23*l)/19;
		residue=128-19*s-23*l;
		if(i>=residue){
			i = residue;
			L = l;
			S = s;
		}
	}
	printf("LONG=%d\nSHORT=%d\nRESIDUE=%d\n",L,S,i);
	return 0;
}
